package cn.yunyichina.scheduler.jobs.dao.message.impl;

import cn.yunyichina.scheduler.jobs.constant.Constant;
import cn.yunyichina.scheduler.jobs.dao.message.MedicalReserveRegisterMessageDao;
import cn.yunyichina.scheduler.jobs.entity.register.RegisterRecord;
import org.apache.ibatis.session.SqlSession;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by Lullaby on 2016/8/17.
 */
@Repository
public class MedicalReserveRegisterMessageDaoImpl implements MedicalReserveRegisterMessageDao {

    private static final String REGISTER_RECORD_MAPPER = "RegisterRecordMapper";

    @Resource
    private SqlSession sqlSession;

    public List<RegisterRecord> getMedicalReserveRecordsOfCurrentDay() {
        return sqlSession.selectList(
                REGISTER_RECORD_MAPPER.concat(Constant.PERIOD_SEPARATOR).concat("getMedicalReserveRecordsOfCurrentDay")
        );
    }

}
